package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_ema_out database table.
 * 
 */
@Entity
@Table(name="per_ema_out")
@NamedQuery(name="PerEmaOut.findAll", query="SELECT p FROM PerEmaOut p")
public class PerEmaOut implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int outid;

	private String outname;

	private int outtxs;

	private String outxzt;

	private String outzh;

	private int outzonf;

	//bi-directional many-to-one association to PerEmaAgt
	@OneToMany(mappedBy="perEmaOut")
	private List<PerEmaAgt> perEmaAgts;

	//bi-directional many-to-one association to PerEmaDa
	@OneToMany(mappedBy="perEmaOut")
	private List<PerEmaDa> perEmaDas;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerEmaTs
	@OneToMany(mappedBy="perEmaOut")
	private List<PerEmaTs> perEmaTs;

	public PerEmaOut() {
	}

	public int getOutid() {
		return this.outid;
	}

	public void setOutid(int outid) {
		this.outid = outid;
	}

	public String getOutname() {
		return this.outname;
	}

	public void setOutname(String outname) {
		this.outname = outname;
	}

	public int getOuttxs() {
		return this.outtxs;
	}

	public void setOuttxs(int outtxs) {
		this.outtxs = outtxs;
	}

	public String getOutxzt() {
		return this.outxzt;
	}

	public void setOutxzt(String outxzt) {
		this.outxzt = outxzt;
	}

	public String getOutzh() {
		return this.outzh;
	}

	public void setOutzh(String outzh) {
		this.outzh = outzh;
	}

	public int getOutzonf() {
		return this.outzonf;
	}

	public void setOutzonf(int outzonf) {
		this.outzonf = outzonf;
	}

	public List<PerEmaAgt> getPerEmaAgts() {
		return this.perEmaAgts;
	}

	public void setPerEmaAgts(List<PerEmaAgt> perEmaAgts) {
		this.perEmaAgts = perEmaAgts;
	}

	public PerEmaAgt addPerEmaAgt(PerEmaAgt perEmaAgt) {
		getPerEmaAgts().add(perEmaAgt);
		perEmaAgt.setPerEmaOut(this);

		return perEmaAgt;
	}

	public PerEmaAgt removePerEmaAgt(PerEmaAgt perEmaAgt) {
		getPerEmaAgts().remove(perEmaAgt);
		perEmaAgt.setPerEmaOut(null);

		return perEmaAgt;
	}

	public List<PerEmaDa> getPerEmaDas() {
		return this.perEmaDas;
	}

	public void setPerEmaDas(List<PerEmaDa> perEmaDas) {
		this.perEmaDas = perEmaDas;
	}

	public PerEmaDa addPerEmaDa(PerEmaDa perEmaDa) {
		getPerEmaDas().add(perEmaDa);
		perEmaDa.setPerEmaOut(this);

		return perEmaDa;
	}

	public PerEmaDa removePerEmaDa(PerEmaDa perEmaDa) {
		getPerEmaDas().remove(perEmaDa);
		perEmaDa.setPerEmaOut(null);

		return perEmaDa;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public List<PerEmaTs> getPerEmaTs() {
		return this.perEmaTs;
	}

	public void setPerEmaTs(List<PerEmaTs> perEmaTs) {
		this.perEmaTs = perEmaTs;
	}

	public PerEmaTs addPerEmaT(PerEmaTs perEmaT) {
		getPerEmaTs().add(perEmaT);
		perEmaT.setPerEmaOut(this);

		return perEmaT;
	}

	public PerEmaTs removePerEmaT(PerEmaTs perEmaT) {
		getPerEmaTs().remove(perEmaT);
		perEmaT.setPerEmaOut(null);

		return perEmaT;
	}

}